import { $t } from "@/plugins/i18n";
const { VITE_HIDE_HOME } = import.meta.env;
import { family } from "@/router/enums";
const Layout = () => import("@/layout/index.vue");

export default {
  path: "/family/menu",
  name: "Family_INDEX",
  component: Layout,
  redirect: "/family/index",
  meta: {
    icon: "ep:home-filled",
    title: $t("menus.hsfamilyParent"),
    rank: family
  },
  children: [
    {
      path: "/family",
      name: "Family",
      component: () => import("@/views/family/index.vue"),
      meta: {
        title: $t("menus.hsfamily"),
        showLink: VITE_HIDE_HOME === "true" ? false : true
      }
    },
    {
      path: "/property",
      name: "Property",
      component: () => import("@/views/property/index.vue"),
      meta: {
        title: $t("menus.hsproperty"),
        showLink: VITE_HIDE_HOME === "true" ? false : true
      }
    }
  ]
} satisfies RouteConfigsTable;
